package com.aistar.helper.homework.h01;

import java.util.Arrays;

/**
 * 本类用来演示
 **/
public class ArrayExDemo {
    public static void main(String[] args) {
        int arr [] = {2,5,1,6,7,2,1,1,4,52,3,4,234,2,43,2,432,4};
        int b [] = new int[arr.length];
        int count = 0;
        for (int i = arr.length-1; i >= 0; i--) {
            b[count++] = arr[i];
        }

        int c[] = new int[5];
        for (int i = 4; i <= 8 ; i++) {

            c[i-4] = arr[i];
        }
        System.out.println(Arrays.toString(c));
    }
}
